<?php
// 事件定义文件
return [
    'bind'      => [
    ],

    'listen'    => [
        'AppInit'  => [],
        'HttpRun'  => [],
        'HttpEnd'  => [],
        'LogLevel' => [],
        'LogWrite' => [],
        // 加入房间
        'swoole.websocket.RoomJoin' => [
            \app\listener\SwRoomJoin::class
        ],
        // 离开房间
        'swoole.websocket.Roomleave' => [
            \app\listener\SwRoomLeave::class
        ],
        // 在房间发消息
        'swoole.websocket.RoomMessage' => [
            \app\listener\SwRoomMessage::class
        ]
    ],

    'subscribe' => [
    ],
];
